/*
 * @Descripttion: 
 * @version: 
 * @Author: wangzhilei
 * @Date: 2021-10-06 07:59:45
 * @LastEditors: wangzhilei
 * @LastEditTime: 2021-10-06 08:30:22
 */
#include<stdio.h>
#include<signal.h>
#include<unistd.h>
#include<string.h>
#include<stdlib.h>

int main(int argc,char *argv[])
{
    printf("ulint:%ld",sizeof (unsigned long int));

    if(argc!=2)
    {
        printf("arguments error");
        exit(0);
    }
    pid_t pid=atoi(argv[1]);
    union sigval v;
    v.sival_int=222;
    //发送SIGUSR1
    sigqueue(pid,SIGUSR1,v);
    return 0;
}